import React, { Component } from 'react'

export default class MyTabs extends Component {
  render() {
    return (
      <div style={{display:'flex',flexDirection:this.props.layout}}>
        {this.props.data&&this.props.data.length>0&&this.props.data.map(item=><div>{this.props.callback(item.title)}</div>)}
      </div>
    )
  }
}
